import request from '@/utils/request'
/**
 *
 * 层层报单的定制接口
 *
 */

// 层层报单 -- 进货 申请
export function purchaseApply(data) {
  return request({
    url: '/DhsPurchaseApi/purchaseApply',
    method: 'post',
    data
  })
}

// 层层报单 -- 进货单
export function purchaseItemList(params) {
  return request({
    url: '/DhsPurchaseApi/purchaseItemList',
    method: 'get',
    params
  })
}

// 层层报单 -- 回执单
export function purchaseReceipt(params) {
  return request({
    url: '/DhsPurchaseApi/purchaseReceipt',
    method: 'get',
    params
  })
}

// 层层报单 -- 我的进货单/下级升级进货单等进货单列表
export function myPurchaseList(params) {
  return request({
    url: '/DhsPurchaseApi/myPurchaseList',
    method: 'get',
    params
  })
}

// 层层报单 -- 进货/升级 审核
export function auditPurchase(data) {
  return request({
    url: '/DhsPurchaseApi/auditPurchase',
    method: 'post',
    data
  })
}
